﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using SES.CMS.BL;

namespace SES.CMS.Modules
{
    public partial class ucHomeSlide : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dtHome = new DataView(new SlideBL().SelectByCategoryID(0), "", "OrderID ASC", DataViewRowState.CurrentRows).ToTable();
            if (!IsPostBack)
            {
                rptSlide.DataSource = dtHome;
                rptSlide.DataBind();
            }
        }
    }
}